home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Texteditors / Origami / bindings / fun / autolang.r < prev    next >
Encoding:
Text File  |  1996-09-27  |  3.1 KB  |  114 lines

  1. @ref-see-also See also in %s.
  2. @{{{}}}
  3. @{{{  autolang-reference-file
  4. @if-using ( complete )
  5. @{{{  @autolang-ref Description
  6. @if-using ( complete )
  7. Libary for automatic switching of language and hash-mode. The  mode  is
  8. marked  with  AutoLang  or   AL   in   the   statusline.   Except   for
  9. set-auto-language,  which  is defined as a macro, all other  operations
  10. are defined as functions.
  11. @fi
  12. @}}}
  13. @fi
  14. @if-using ( complete known-endings )
  15. @{{{  @autolang-ref auto-language switching
  16. @if-using ( complete known-endings )
  17. If mode auto-language is  active,  language  and   mode  hash-shift  are
  18. handled  automatically  for files using language None,  depending on the
  19. ending of the filename.
  20.  
  21. The following languages may be switched on automatically:
  22. @ref-start-tbl Language 8 comment 10 comment 10 # 3 Endings 24
  23. Occam @@ "--" @@ "" @@ On @@ .ada
  24. Occam @@ "--" @@ "" @@ Off @@ .occ
  25. Pascal @@ "(*" @@ "*)" @@ On @@ .p / .pas
  26. Pascal @@ "(*" @@ "*)" @@ On @@ .mod
  27. Pascal @@ "(*" @@ "*)" @@ On @@ .h / .hh / .hpp (*)
  28. C @@ "/*" @@ "*/" @@ On @@ .C / .c / .cc
  29. C @@ "/*" @@ "*/" @@ On @@ .cpp
  30. C @@ "/*" @@ "*/" @@ On @@ .l / .y
  31. C @@ "/*" @@ "*/" @@ On @@ .h / .hh / .hpp (**)
  32. Script @@ "#" @@ "" @@ Off @@ .sh / rc
  33. Script @@ "#" @@ "" @@ Off @@ .awk / .pl / .sed
  34. Script @@ "#" @@ "" @@ Off @@ .m0 .. .m9
  35. Script @@ "#" @@ "" @@ Off @@ makefile
  36. Script @@ "#" @@ "" @@ Off @@ Makefile
  37. Script @@ "#" @@ "" @@ Off @@ MAKEFILE
  38. Lisp @@ ";" @@ "" @@ On @@ .asm / .s
  39. Lisp @@ ";" @@ "" @@ On @@ .e
  40. Lisp @@ ";" @@ "" @@ On @@ .el
  41. Roff @@ ".\"" @@ "" @@ Off @@ .0 .. .9
  42. Roff @@ ".\"" @@ "" @@ Off @@ .man
  43. Roff @@ ".\"" @@ "" @@ Off @@ .me / .ME
  44. Roff @@ ".\"" @@ "" @@ Off @@ .mm / .MM
  45. Roff @@ ".\"" @@ "" @@ Off @@ .ms / .MS
  46. TeX @@ "%" @@ "" @@ Off @@ .tex / .sty / .aux
  47. User @@ "C" @@ "" @@ Off @@ .F / .FOR / .f / .for
  48. User @@ "||" @@ "" @@ Off @@ .m
  49. User @@ "@comment" @@ "" @@ Off @@ .texi
  50. @ref-end-tbl
  51. @ref-start-item (*)
  52. if .p / .pas were used before!
  53. @ref-end-item
  54. @ref-start-item (**)
  55. if .C / .c / .cc / .cpp were used before!
  56. @ref-end-item
  57.  
  58. @{{{  @autolang Known endings
  59. @ref-start-tbl Endings 60
  60. .0 .. .9
  61. .C
  62. .F
  63. .ME / .MM / .MS
  64. .ada / .asm / .aux / .awk
  65. .c / .cc / .cpp
  66. .e / .el
  67. .f / .for
  68. .h / .hh / .hpp
  69. .l
  70. .m / .m0 .. .m9 / .man / .me / .mm / .mod / .ms
  71. .occ
  72. .p / .pas / .pl
  73. .s / .sed / .sh / .sty
  74. .tex / .texi
  75. .y
  76. MAKEFILE
  77. Makefile
  78. makefile
  79. rc
  80. @ref-end-tbl
  81. @}}}
  82. @fi
  83. @}}}
  84. @fi
  85. @if-using ( complete set-auto-called add-auto-called del-auto-called )
  86. @{{{  @autolang-ref Functions and macros
  87. @if-using ( complete set-auto-called )
  88. @{{{  @autolang-ref set-auto-language
  89. Switch the language and hash-shift mode, depending on the  filename.
  90. If the file is not changed before calling this function,  it will be
  91. left unchanged by this operation.
  92. @}}}
  93. @fi
  94. @if-using ( complete add-auto-called )
  95. @{{{  @autolang-ref add-mode-auto-language
  96. Switch on auto-language mode
  97. @}}}
  98. @fi
  99. @if-using ( complete del-auto-called )
  100. @{{{  @autolang-ref delete-mode-auto-language
  101. Switch off auto-language mode
  102. @}}}
  103. @fi
  104. @}}}
  105. @fi
  106. @if-using ( complete )
  107. @{{{  @autolang-ref Hooks
  108. @if-using ( complete )
  109. The libary functions are marked as demand-loading.
  110. @fi
  111. @}}}
  112. @fi
  113. @}}}
  114.